/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.web30.idm.model;

/**
 *
 * @author Xia Zhenyu
 */
public class IDMException extends Exception {
    

    public final static String IDM_INSUFFICIENT_ATTR = "Lack must attributes";

    public final static String IDM_INVALID_PASSWORD = "Invalid password";

    public final static int IDM_ADDING_ACCOUNT_EXISTED = 1;

    public final static int IDM_ACCOUNT_DOESNONT_EXIST = 2;

    private int errno;

    public IDMException(String err) {
        super(err);
    }

    public IDMException(Exception e) {
        super(e);
    }

    public IDMException(Exception e, int errno) {
        super(e);
        this.errno = errno;
    }

    public int getErrno() {
        return errno;
    }

    public void setErrno(int errno) {
        this.errno = errno;
    }

    

}
